package com.example.rabbitmq.consumer;

import com.example.rabbitmq.config.RabbitFanoutConfig;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @Author: ft
 * @Date:2025/8/26
 * @Description: 相关单据：
 */
@EnableRabbit
@Component
@Configuration
public class OrderConsumer {

    @RabbitListener(queues = "my.test.order.pay.dead.queue")
    @RabbitHandler
    public void receiveMessage(String message) {
        System.out.println("Received message: " + message);
    }

}